#!/bin/bash

PREBUILT_PATH="vendor/oneplus/"

list="
bin
etc/acdbdata/Fluid
etc/acdbdata/Liquid
etc/acdbdata/MTP
etc/acdbdata/QRD
etc/bluetooth
etc/camera
etc/cne
etc/cne/wqeclient
etc/data
etc/dhcpcd
etc/dhcpcd/dhcpcd-hooks
etc/dpm
etc/dpm/nsrm
etc/drc
etc/firmware/mbn_ota/mcfg_sw
etc/firmware/mbn_ota/mcfg_sw_NoCDMA
etc/firmware/tp
etc/firmware/wlan/qca_cld
etc/hostapd
etc/mmi
etc/mmi/layout
etc/permissions
etc/qvop
etc/security
etc/security/cacerts
etc/sensors
etc/stargate/image_quality/templates
etc/stargate/wakeup/templates
etc/surround_sound_3mic
etc/usf
etc/usf/mixer
etc/usf/proximity/cfg_mtp
etc/wifi
fonts
framework
lib
lib64
lib64/hw
lib/egl
lib/hw
lib/modules
lib/modules/qca_cld
media/audio/alarms
media/audio/notifications
media/audio/ringtones
media/audio/ui
tts/lang_pico
usr/hyphen-data
usr/icu
usr/idc
usr/keychars
usr/keylayout
usr/qfipsverify
usr/share/bmd
usr/share/zoneinfo
vendor/bin
vendor/etc
vendor/etc/RIDL
vendor/etc/scve/facereco
vendor/etc/scve/textreco/chardecoder
vendor/etc/scve/textreco/textdetector
vendor/etc/scve/textreco/worddecoder
vendor/lib64
vendor/lib64/egl
vendor/lib64/hw
vendor/lib64/soundfx
vendor/lib/egl
vendor/lib/hw
vendor/lib/qcdrm/playready/lib
vendor/lib/qcdrm/playready/lib/drm
vendor/lib/qcdrm/playready/lib/mediadrm
vendor/lib/rfsa/adsp
vendor/lib/soundfx
sbin
"

for i in ${list}
do
  mkdir -p ${PREBUILT_PATH}${i}
done

bin_list="
adsprpcd
am
appops
appwidget
ATFWD-daemon
athdiag
bdt
bmgr
btnvtool
bu
cnd
cnss-daemon
cnss_diag
content
diag_callback_sample
diag_dci_sample
diag_klog
diag_mdlog
diag_socket_log
diag_uart_log
dpm
dpmd
dun-server
energy-awareness
fmconfig
fmfactorytest
fmfactorytestserver
fm_qsoc_patches
ftmdaemon
garden_app
gpsone_daemon
gptest
hal_proxy_daemon
hci_qcomm_init
hid
hvdcp_opti
ime
imscmservice
imsdatadaemon
imsqmidaemon
ims_rtp_daemon
input
iop
ipacm-diag
irsc_util
ks
loc_launcher
lowi-server
mct-unit-test-app
mdm_helper
mdm_helper_proxy
media
mm-audio-ftm
mmi
mmi_agent32
mmi_agent64
mmi_debug
mmi_diag
mm-qcamera-daemon
mm-vidc-omx-test
monkey
msm_irqbalance
myftm
netmgrd
nl_listener
pktlogconf
PktRspTest
pm
pm-proxy
pm-service
port-bridge
qcom-system-daemon
qfipsverify
qfp-daemon
qmi_simple_ril_test
qmuxd
qseecomd
qseecom_sample_client
qseecom_security_test
qvop-daemon
radish
requestsync
rmt_storage
secure_camera_sample_client
secure_ui_sample_client
sensors.qcom
settings
sm
ssr_diag
ssr_setup
StoreKeybox
subsystem_ramdump
svc
tbaseLoader
telecom
test_bet_8996
test_diag
test_module_pproc
tftp_server
time_daemon
tloc_daemon
uiautomator
usf_proximity
usf_tester
wcnss_filter
wdsdaemon
wfdservice
WifiLogger_app
wm
xtwifi-client
xtwifi-inet-agent
yuvtool
"

for i in ${bin_list}
do
  adb pull /system/bin/${i} ${PREBUILT_PATH}bin/${i}
done

cd ${PREBUILT_PATH}bin
chmod 775 *
cd -

etc_list="
acdbdata/Fluid/Fluid_Bluetooth_cal.acdb
acdbdata/Fluid/Fluid_General_cal.acdb
acdbdata/Fluid/Fluid_Global_cal.acdb
acdbdata/Fluid/Fluid_Handset_cal.acdb
acdbdata/Fluid/Fluid_Hdmi_cal.acdb
acdbdata/Fluid/Fluid_Headset_cal.acdb
acdbdata/Fluid/Fluid_Speaker_cal.acdb
acdbdata/Liquid/Liquid_Bluetooth_cal.acdb
acdbdata/Liquid/Liquid_General_cal.acdb
acdbdata/Liquid/Liquid_Global_cal.acdb
acdbdata/Liquid/Liquid_Handset_cal.acdb
acdbdata/Liquid/Liquid_Hdmi_cal.acdb
acdbdata/Liquid/Liquid_Headset_cal.acdb
acdbdata/Liquid/Liquid_Speaker_cal.acdb
acdbdata/MTP/MTP_Bluetooth_cal.acdb
acdbdata/MTP/MTP_General_cal.acdb
acdbdata/MTP/MTP_Global_cal.acdb
acdbdata/MTP/MTP_Handset_cal.acdb
acdbdata/MTP/MTP_Hdmi_cal.acdb
acdbdata/MTP/MTP_Headset_cal.acdb
acdbdata/MTP/MTP_Speaker_cal.acdb
acdbdata/QRD/QRD_Bluetooth_cal.acdb
acdbdata/QRD/QRD_General_cal.acdb
acdbdata/QRD/QRD_Global_cal.acdb
acdbdata/QRD/QRD_Handset_cal.acdb
acdbdata/QRD/QRD_Hdmi_cal.acdb
acdbdata/QRD/QRD_Headset_cal.acdb
acdbdata/QRD/QRD_Speaker_cal.acdb
apns-conf.xml
firmware/a225p5_pm4.fw
firmware/a225_pfp.fw
firmware/a225_pm4.fw
firmware/a300_pfp.fw
firmware/a300_pm4.fw
firmware/a330_pfp.fw
firmware/a330_pm4.fw
firmware/a420_pfp.fw
firmware/a420_pm4.fw
firmware/a530_gpmu.fw2
firmware/a530_pfp.fw
firmware/a530_pm4.fw
firmware/a530v1_pfp.fw
firmware/a530v1_pm4.fw
firmware/a530v2_seq.fw2
firmware/a530v3_gpmu.fw2
firmware/a530v3_seq.fw2
firmware/a530_zap.b00
firmware/a530_zap.b01
firmware/a530_zap.b02
firmware/a530_zap.elf
firmware/a530_zap.mdt
firmware/alipay.b00
firmware/alipay.b01
firmware/alipay.b02
firmware/alipay.b03
firmware/alipay.b04
firmware/alipay.b05
firmware/alipay.b06
firmware/alipay.mdt
firmware/cpp_firmware_v1_10_0.fw
firmware/cpp_firmware_v1_1_1.fw
firmware/cpp_firmware_v1_1_6.fw
firmware/cpp_firmware_v1_2_0.fw
firmware/cpp_firmware_v1_4_0.fw
firmware/cpp_firmware_v1_5_0.fw
firmware/cpp_firmware_v1_5_2.fw
firmware/cpp_firmware_v1_6_0.fw
firmware/cpp_firmware_v1_8_0.fw
firmware/leia_pfp_470.fw
firmware/leia_pm4_470.fw
firmware/mbn_ota/mcfg_sw/mcfg_sw_ATT-VoLTE.mbn
firmware/mbn_ota/mcfg_sw/mcfg_sw_CMCC_Volte_OpenMkt-Commercial.mbn
firmware/mbn_ota/mcfg_sw/mcfg_sw_CT_OpenMkt-Commercial.mbn
firmware/mbn_ota/mcfg_sw/mcfg_sw_CU_OpenMkt-Commercial.mbn
firmware/mbn_ota/mcfg_sw/mcfg_sw_OEM_CDMA-Commercial.mbn
firmware/mbn_ota/mcfg_sw/mcfg_sw_OEM_Test-VoLTE.mbn
firmware/mbn_ota/mcfg_sw/mcfg_sw_TMO-Commercial.mbn
firmware/mbn_ota/mcfg_sw_NoCDMA/mcfg_sw_CMCC_Volte_OpenMkt-Commercial.mbn
firmware/mbn_ota/mcfg_sw_NoCDMA/mcfg_sw_CU_OpenMkt-Commercial.mbn
firmware/mbn_ota/mcfg_sw_NoCDMA/mcfg_sw_OEM_NoCDMA-Commercial.mbn
firmware/mbn_ota/mcfg_sw_NoCDMA/mcfg_sw_OEM_Test-VoLTE.mbn
firmware/mbn_ota/mcfg_sw_NoCDMA/mcfg_sw_Reliance-Commercial.mbn
firmware/mbn_ota/mcfg_sw_NoCDMA/mcfg_sw_YTL-Commercial.mbn
firmware/nvm_tlv_1.3.bin
firmware/nvm_tlv_2.1.bin
firmware/nvm_tlv_3.0.bin
firmware/nvm_tlv_3.2.bin
firmware/nvm_tlv.bin
firmware/rampatch_tlv_1.3.tlv
firmware/rampatch_tlv_2.1.tlv
firmware/rampatch_tlv_3.0.tlv
firmware/rampatch_tlv_3.2.tlv
firmware/rampatch_tlv.img
firmware/tfa98xx.cnt
firmware/tp/fw_synaptics_15801b.img
firmware/tp/fw_synaptics_15801.img
firmware/tp/fw_synaptics_touchkey.img
firmware/wlan/qca_cld/WCNSS_cfg.dat
cacert_location.pem
camera/imx179_chromatix.xml
camera/imx298_chromatix.xml
camera/msm8996_camera.xml
capability.xml
cne/andsfCne.xml
cne/SwimConfig.xml
cne/wqeclient/profile1.xml
cne/wqeclient/profile2.xml
cne/wqeclient/profile3.xml
cne/wqeclient/profile4.xml
cne/wqeclient/profile5.xml
data/dsi_config.xml
data/netmgr_config.xml
data/qmi_config.xml
dpm/dpm.conf
dpm/nsrm/NsrmConfiguration.xml
drc/drc_cfg_AZ.txt
flp.conf
ftm_test_config
ftm_test_config_msm8996-dtp-tasha-snd-card
izat.conf
lowi.conf
mmi/fail.png
mmi/fonts.ttf
mmi/layout/footer_fail.xml
mmi/layout/footer.xml
mmi/layout/header.xml
mmi/layout/layout_battery.xml
mmi/layout/layout_bluetooth.xml
mmi/layout/layout_button_backlight.xml
mmi/layout/layout_camera_back.xml
mmi/layout/layout_camera_front.xml
mmi/layout/layout_cb.xml
mmi/layout/layout_common.xml
mmi/layout/layout_confirm.xml
mmi/layout/layout_cpu.xml
mmi/layout/layout_emmc.xml
mmi/layout/layout_feedback.xml
mmi/layout/layout_flashlight.xml
mmi/layout/layout_fm.xml
mmi/layout/layout_gps.xml
mmi/layout/layout_gsensor.xml
mmi/layout/layout_gyroscope.xml
mmi/layout/layout_handset.xml
mmi/layout/layout_headset_key.xml
mmi/layout/layout_headset.xml
mmi/layout/layout_key.xml
mmi/layout/layout_lcd_backlight.xml
mmi/layout/layout_lcd.xml
mmi/layout/layout_led_blue.xml
mmi/layout/layout_led_green.xml
mmi/layout/layout_led_red.xml
mmi/layout/layout_loudspeaker.xml
mmi/layout/layout_lsensor.xml
mmi/layout/layout_memory.xml
mmi/layout/layout_msensor.xml
mmi/layout/layout_nfc.xml
mmi/layout/layout_pcba.xml
mmi/layout/layout_primary_mic.xml
mmi/layout/layout_psensor.xml
mmi/layout/layout_reboot.xml
mmi/layout/layout_report.xml
mmi/layout/layout_sdcard.xml
mmi/layout/layout_simcard1.xml
mmi/layout/layout_simcard2.xml
mmi/layout/layout_system_info.xml
mmi/layout/layout_touch.xml
mmi/layout/layout_vibrator.xml
mmi/layout/layout_wifi.xml
mmi/layout/main.xml
mmi/mmi.cfg
mmi/mmi-pcba.cfg
mmi/pagedown.png
mmi/pageup.png
mmi/pass.png
mmi/poweroff.png
mmi/qualsound.wav
mmi/reboot.png
mmi/report.png
mmi/reset.png
mmi/runall.png
mmi/strings.xml
mmi/strings-zh-rCN.xml
permissions/cneapiclient.xml
permissions/com.qti.dpmframework.xml
permissions/com.qti.location.sdk.xml
permissions/com.qti.snapdragon.sdk.display.xml
permissions/com.qualcomm.location.vzw_library.xml
permissions/com.qualcomm.location.xml
permissions/com.quicinc.cne.xml
permissions/ConnectivityExt.xml
permissions/dpmapi.xml
permissions/embms.xml
permissions/GBAHttpAuthentication.xml
permissions/imscm.xml
permissions/qcnvitems.xml
permissions/qcrilhook.xml
permissions/qti_permissions.xml
permissions/telephonyservice.xml
qdcm_calib_data_samsung_s6e3fa3_1080p_cmd_mode_dsi_panel.xml
qdcm_calib_data_samsung_s6e3fa3_1080p_video_mode_dsi_panel.xml
qvop/antispoofing.bin
qvop/cmudict.bin
qvop/noisesample.bin
qvop/poc_64_hmm.gmm
sap.conf
sensors/sensor_def_qcomdev.conf
stargate/image_quality/templates/template1.pgm
stargate/wakeup/templates/template_imaginary.bin
stargate/wakeup/templates/template_real.bin
surround_sound_3mic/surround_sound_rec_AZ.cfg
thermal-engine.conf
usf/form_factor_mtp.cfg
usf/mixer/mixer_paths_mtp.xml
usf/proximity/cfg_mtp/usf_pocket_apps_mtp.cfg
usf/proximity/cfg_mtp/usf_pocket_mtp_algo_transparent_data.bin
usf/proximity/cfg_mtp/usf_pocket_mtp.cfg
usf/proximity/cfg_mtp/usf_proximity_apps_mtp.cfg
usf/proximity/cfg_mtp/usf_proximity_mtp_algo_transparent_data.bin
usf/proximity/cfg_mtp/usf_proximity_mtp.cfg
usf/proximity/cfg_mtp/usf_proximity_mtp_debug.cfg
usf/proximity/cfg_mtp/usf_proximity_mtp_rx_transparent_data.bin
usf/proximity/cfg_mtp/usf_proximity_mtp_tx_transparent_data.bin
usf/proximity/cfg_mtp/usf_ranging_apps_mtp.cfg
usf/proximity/cfg_mtp/usf_ranging_mtp_algo_transparent_data.bin
usf/readme.txt
usf/version.txt
wfdconfigsink.xml
wfdconfig.xml
xtra_root_cert.pem
xtwifi.conf
"

for i in ${etc_list}
do
  adb pull /system/etc/${i} ${PREBUILT_PATH}etc/${i}
done

fonts_list="
AndroidClock_Highlight.ttf
AndroidClock_Solid.ttf
AndroidClock.ttf
CarroisGothicSC-Regular.ttf
Clockopia.ttf
ComingSoon.ttf
CutiveMono.ttf
DancingScript-Bold.ttf
DancingScript-Regular.ttf
DroidSans-Bold.ttf
DroidSansMono.ttf
DroidSans.ttf
NotoColorEmoji.ttf
NotoNaskhArabic-Bold.ttf
NotoNaskhArabic-Regular.ttf
NotoNaskhArabicUI-Bold.ttf
NotoNaskhArabicUI-Regular.ttf
NotoSansArmenian-Bold.ttf
NotoSansArmenian-Regular.ttf
NotoSansBalinese-Regular.ttf
NotoSansBamum-Regular.ttf
NotoSansBatak-Regular.ttf
NotoSansBengali-Bold.ttf
NotoSansBengali-Regular.ttf
NotoSansBengaliUI-Bold.ttf
NotoSansBengaliUI-Regular.ttf
NotoSansBuginese-Regular.ttf
NotoSansBuhid-Regular.ttf
NotoSansCanadianAboriginal-Regular.ttf
NotoSansCham-Bold.ttf
NotoSansCham-Regular.ttf
NotoSansCherokee-Regular.ttf
NotoSansCoptic-Regular.ttf
NotoSansDevanagari-Bold.ttf
NotoSansDevanagari-Regular.ttf
NotoSansDevanagariUI-Bold.ttf
NotoSansDevanagariUI-Regular.ttf
NotoSansEthiopic-Bold.ttf
NotoSansEthiopic-Regular.ttf
NotoSansGeorgian-Bold.ttf
NotoSansGeorgian-Regular.ttf
NotoSansGlagolitic-Regular.ttf
NotoSansGujarati-Bold.ttf
NotoSansGujarati-Regular.ttf
NotoSansGujaratiUI-Bold.ttf
NotoSansGujaratiUI-Regular.ttf
NotoSansGurmukhi-Bold.ttf
NotoSansGurmukhi-Regular.ttf
NotoSansGurmukhiUI-Bold.ttf
NotoSansGurmukhiUI-Regular.ttf
NotoSansHanunoo-Regular.ttf
NotoSansHebrew-Bold.ttf
NotoSansHebrew-Regular.ttf
NotoSansJavanese-Regular.ttf
NotoSansJP-Regular.otf
NotoSansKannada-Bold.ttf
NotoSansKannada-Regular.ttf
NotoSansKannadaUI-Bold.ttf
NotoSansKannadaUI-Regular.ttf
NotoSansKayahLi-Regular.ttf
NotoSansKhmer-Bold.ttf
NotoSansKhmer-Regular.ttf
NotoSansKhmerUI-Bold.ttf
NotoSansKhmerUI-Regular.ttf
NotoSansKR-Regular.otf
NotoSansLao-Bold.ttf
NotoSansLao-Regular.ttf
NotoSansLaoUI-Bold.ttf
NotoSansLaoUI-Regular.ttf
NotoSansLepcha-Regular.ttf
NotoSansLimbu-Regular.ttf
NotoSansLisu-Regular.ttf
NotoSansMalayalam-Bold.ttf
NotoSansMalayalam-Regular.ttf
NotoSansMalayalamUI-Bold.ttf
NotoSansMalayalamUI-Regular.ttf
NotoSansMandaic-Regular.ttf
NotoSansMeeteiMayek-Regular.ttf
NotoSansMongolian-Regular.ttf
NotoSansMyanmar-Bold.ttf
NotoSansMyanmar-Regular.ttf
NotoSansMyanmarUI-Bold.ttf
NotoSansMyanmarUI-Regular.ttf
NotoSansNewTaiLue-Regular.ttf
NotoSansNKo-Regular.ttf
NotoSansOlChiki-Regular.ttf
NotoSansOriya-Bold.ttf
NotoSansOriya-Regular.ttf
NotoSansOriyaUI-Bold.ttf
NotoSansOriyaUI-Regular.ttf
NotoSansRejang-Regular.ttf
NotoSansSaurashtra-Regular.ttf
NotoSansSC-Regular.otf
NotoSansSinhala-Bold.ttf
NotoSansSinhala-Regular.ttf
NotoSansSundanese-Regular.ttf
NotoSansSylotiNagri-Regular.ttf
NotoSansSymbols-Regular-Subsetted.ttf
NotoSansSyriacEstrangela-Regular.ttf
NotoSansTagbanwa-Regular.ttf
NotoSansTaiLe-Regular.ttf
NotoSansTaiTham-Regular.ttf
NotoSansTaiViet-Regular.ttf
NotoSansTamil-Bold.ttf
NotoSansTamil-Regular.ttf
NotoSansTamilUI-Bold.ttf
NotoSansTamilUI-Regular.ttf
NotoSansTC-Regular.otf
NotoSansTelugu-Bold.ttf
NotoSansTelugu-Regular.ttf
NotoSansTeluguUI-Bold.ttf
NotoSansTeluguUI-Regular.ttf
NotoSansThaana-Bold.ttf
NotoSansThaana-Regular.ttf
NotoSansThai-Bold.ttf
NotoSansThai-Regular.ttf
NotoSansThaiUI-Bold.ttf
NotoSansThaiUI-Regular.ttf
NotoSansTibetan-Regular.ttf
NotoSansTifinagh-Regular.ttf
NotoSansVai-Regular.ttf
NotoSansYi-Regular.ttf
NotoSerif-BoldItalic.ttf
NotoSerif-Bold.ttf
NotoSerif-Italic.ttf
NotoSerif-Regular.ttf
Roboto-BlackItalic.ttf
Roboto-Black.ttf
Roboto-BoldItalic.ttf
Roboto-Bold.ttf
RobotoCondensed-BoldItalic.ttf
RobotoCondensed-Bold.ttf
RobotoCondensed-Italic.ttf
RobotoCondensed-LightItalic.ttf
RobotoCondensed-Light.ttf
RobotoCondensed-Regular.ttf
Roboto-Italic.ttf
Roboto-LightItalic.ttf
Roboto-Light.ttf
Roboto-MediumItalic.ttf
Roboto-Medium.ttf
Roboto-Regular.ttf
Roboto-ThinItalic.ttf
Roboto-Thin.ttf
"

for i in ${fonts_list}
do
  adb pull /system/fonts/${i} ${PREBUILT_PATH}fonts/${i}
done

lib_list="
crtbegin_so.o
crtend_so.o
egl/egl.cfg
hw/audio.primary.msm8996.so
hw/gps.default.so
libclcore.bc
libclcore_debug.bc
libclcore_neon.bc
libFNVfbEngineHAL.so
libgps.utils.so
libjson.so
libloc_api_v02.so
libloc_core.so
libloc_eng.so
libminui.so
libmorpho_image_stab4.so
libmorpho_video_refiner.so
libOmxVpp.so
libopcamerahw_interface.so
libparam.so
libpdmapper.so
libqti_performance.so
libstagefright_soft_flacdec.so
libvpplibrary.so
modules/core_ctl.ko
modules/mmc_test.ko
modules/br_netfilter.ko
modules/ansi_cprng.ko
modules/spidev.ko
modules/lcd.ko
modules/msm-buspm-dev.ko
modules/rdbg.ko
modules/ufs_test.ko
modules/wil6210.ko
modules/mmc_block_test.ko
modules/evbug.ko
modules/test-iosched.ko
modules/backlight.ko
modules/generic_bl.ko
lib_fpc_tac_shared.so
hw/fingerprint.msm8996.so
"

for i in ${lib_list}
do
  adb pull /system/lib/${i} ${PREBUILT_PATH}lib/${i}
done

lib64_list="
crtbegin_so.o
crtend_so.o
hw/audio.primary.msm8996.so
hw/gps.default.so
libclcore.bc
libclcore_debug.bc
libgps.utils.so
libjson.so
libloc_api_v02.so
libloc_core.so
libloc_eng.so
libminui.so
libOmxVpp.so
libparam.so
libpdmapper.so
libqti-iop.so
libqti_performance.so
libstagefright_soft_flacdec.so
libvpplibrary.so
libwifi-hal-qcom.so
lib_fpc_tac_shared.so
hw/fingerprint.msm8996.so
"

for i in ${lib64_list}
do
  adb pull /system/lib64/${i} ${PREBUILT_PATH}lib64/${i}
done

usr_list="
hyphen-data/hyph-en-us.hyb
hyphen-data/hyph-en-us.lic.txt
hyphen-data/hyph-eu.hyb
hyphen-data/hyph-eu.lic.txt
hyphen-data/hyph-hu.hyb
hyphen-data/hyph-hu.lic.txt
hyphen-data/hyph-hy.hyb
hyphen-data/hyph-hy.lic.txt
hyphen-data/hyph-nb.hyb
hyphen-data/hyph-nb.lic.txt
hyphen-data/hyph-nn.hyb
hyphen-data/hyph-nn.lic.txt
hyphen-data/hyph-und-ethi.hyb
hyphen-data/hyph-und-ethi.lic.txt
icu/icudt55l.dat
idc/AVRCP.idc
idc/qwerty2.idc
idc/qwerty.idc
idc/usf_tsc_ext.idc
idc/usf_tsc.idc
idc/usf_tsc_ptr.idc
keychars/Generic.kcm
keychars/qwerty2.kcm
keychars/qwerty.kcm
keychars/Vendor_18d1_Product_5018.kcm
keychars/Virtual.kcm
keylayout/AVRCP.kl
keylayout/Generic.kl
keylayout/gpio-keys.kl
keylayout/qpnp_pon.kl
keylayout/qwerty.kl
keylayout/synaptics_dsx.kl
keylayout/Vendor_0079_Product_0011.kl
keylayout/Vendor_045e_Product_028e.kl
keylayout/Vendor_046d_Product_b501.kl
keylayout/Vendor_046d_Product_c216.kl
keylayout/Vendor_046d_Product_c219.kl
keylayout/Vendor_046d_Product_c21d.kl
keylayout/Vendor_046d_Product_c21f.kl
keylayout/Vendor_046d_Product_c294.kl
keylayout/Vendor_046d_Product_c299.kl
keylayout/Vendor_046d_Product_c532.kl
keylayout/Vendor_054c_Product_0268.kl
keylayout/Vendor_0583_Product_2060.kl
keylayout/Vendor_05ac_Product_0239.kl
keylayout/Vendor_0b05_Product_4500.kl
keylayout/Vendor_1038_Product_1412.kl
keylayout/Vendor_12bd_Product_d015.kl
keylayout/Vendor_1532_Product_0900.kl
keylayout/Vendor_1689_Product_fd00.kl
keylayout/Vendor_1689_Product_fd01.kl
keylayout/Vendor_1689_Product_fe00.kl
keylayout/Vendor_18d1_Product_2c40.kl
keylayout/Vendor_18d1_Product_5018.kl
keylayout/Vendor_1949_Product_0401.kl
keylayout/Vendor_1bad_Product_f016.kl
keylayout/Vendor_1bad_Product_f023.kl
keylayout/Vendor_1bad_Product_f027.kl
keylayout/Vendor_1bad_Product_f036.kl
keylayout/Vendor_1d79_Product_0009.kl
keylayout/Vendor_22b8_Product_093d.kl
keylayout/Vendor_2378_Product_1008.kl
keylayout/Vendor_2378_Product_100a.kl
qfipsverify/bootimg.hmac
qfipsverify/qfipsverify.hmac
share/bmd/RFFspeed_501.bmd
share/bmd/RFFstd_501.bmd
share/zoneinfo/tzdata
"

for i in ${usr_list}
do
  adb pull /system/usr/${i} ${PREBUILT_PATH}usr/${i}
done

vendor_list="
bin/audioflacapp
bin/chamomile_provision
bin/hdcp1prov
bin/mdtpd
bin/mm-pp-daemon
bin/mm-qjpeg-dec-test
bin/mm-qjpeg-enc-test
bin/mm-qomx-idec-test
bin/mm-qomx-ienc-test
bin/pd-mapper
bin/perfd
bin/qjpeg-dma-test
bin/qseeproxydaemon
bin/qseeproxysampledaemon
bin/qti
bin/RIDLClient.exe
bin/slim_daemon
bin/thermal-engine
etc/audio_effects.conf
etc/audio_output_policy.conf
etc/msm_irqbalance.conf
etc/perf-profile0.conf
etc/perf-profile1.conf
etc/perf-profile2.conf
etc/perf-profile3.conf
etc/perf-profile4.conf
etc/perf-profile5.conf
etc/perf-profile6.conf
etc/RIDL/GoldenLogmask.dmc
etc/RIDL/OTA-Logs.dmc
etc/RIDL/qdss.cfg
etc/RIDL/RIDL.db
etc/scve/facereco/gModel.dat
etc/scve/textreco/chardecoder/character.cost
etc/scve/textreco/chardecoder/CharType.dat
etc/scve/textreco/chardecoder/ChinesePunctuation.rst
etc/scve/textreco/chardecoder/_conf_eng_num_sym_font40_4transd_zscore_morph_.trn2876.trn
etc/scve/textreco/chardecoder/_conf_eng_num_sym_font40_conc2_meshrn__de__1_1__zscore_morph.trn10158.trn
etc/scve/textreco/chardecoder/_conf_eng_num_sym_font40_rbp_data5100_patch500_5x5_24x24_dim727.trn31585.trn
etc/scve/textreco/chardecoder/_eng_font40_4transmeshrnorm6x6_leaflda85_ligature_ext14_c70_sp1lI_newxml3.trn31299.trn
etc/scve/textreco/chardecoder/GLVQDecoder_fixed.ohie
etc/scve/textreco/chardecoder/glvq_kor_consonant_19classes_64_16dim_i0_linearNorm.dat
etc/scve/textreco/chardecoder/hGLVQ_kor_RLF80_float.hie
etc/scve/textreco/chardecoder/LDA_kor_consonant_19classes_64dim_linearNorm.dat
etc/scve/textreco/chardecoder/_numpunc_font40_4transmeshrnorm_leafnum1.trn9614.trn
etc/scve/textreco/chardecoder/_numpunc_font40_conc2_DEFn__BGTouchy6x6n__1_1__morph.trn32025.trn
etc/scve/textreco/chardecoder/_numpunc_parteng_font40_4transmeshr_morph.trn400.trn
etc/scve/textreco/chardecoder/punRangeData.rst
etc/scve/textreco/textdetector/cnn_multiLang1020.bin
etc/scve/textreco/worddecoder/chinese_address_20150304.bin
etc/scve/textreco/worddecoder/english_address_20150213.bin
etc/scve/textreco/worddecoder/english_dictionary_20150213.bin
etc/scve/textreco/worddecoder/korean_address_20150129.bin
etc/scve/textreco/worddecoder/korean.pos.20141226.bin
lib/egl/eglSubDriverAndroid.so
lib/egl/libEGL_adreno.so
lib/egl/libGLESv1_CM_adreno.so
lib/egl/libGLESv2_adreno.so
lib/egl/libq3dtools_adreno.so
lib/egl/libq3dtools_esx.so
lib/egl/libQTapGLES.so
lib/hw/activity_recognition.msm8996.so
lib/hw/flp.default.so
lib/hw/gatekeeper.msm8996.so
lib/hw/keystore.msm8996.so
lib/hw/sound_trigger.primary.msm8996.so
lib/libacdb-fts.so
lib/libacdbloader.so
lib/libacdbmapper.so
lib/libacdbrtac.so
lib/libactuator_rohm_bu63165gwl.so
lib/libadiertac.so
lib/libadm.so
lib/libadpcmdec.so
lib/libadreno_utils.so
lib/libadsp_default_listener.so
lib/libadsprpc.so
lib/libalarmservice_jni.so
lib/libasn1cper.so
lib/libasn1crt.so
lib/libasn1crtx.so
lib/libaudcal.so
lib/libaudioalsa.so
lib/libaudiodevarb.so
lib/libbccQTI.so
lib/libbtnv.so
lib/libbt-vendor.so
lib/libC2D2.so
lib/libc2d30-a3xx.so
lib/libc2d30-a4xx.so
lib/libc2d30-a5xx.so
lib/libc2d30_bltlib.so
lib/libCB.so
lib/libChamomilePA.so
lib/libchromatix_imx179_3a_1640x924_30fps_preview.so
lib/libchromatix_imx179_3a_1640x924_30fps_video.so
lib/libchromatix_imx179_3a_3280x1846_30fps_preview.so
lib/libchromatix_imx179_3a_3280x1846_30fps_video.so
lib/libchromatix_imx179_3a_3280x2464_30fps_facebeauty.so
lib/libchromatix_imx179_3a_3280x2464_30fps_preview.so
lib/libchromatix_imx179_3a_3280x2464_30fps_video.so
lib/libchromatix_imx179_common.so
lib/libchromatix_imx179_cpp_1640x924_30fps_liveshot.so
lib/libchromatix_imx179_cpp_1640x924_30fps_preview.so
lib/libchromatix_imx179_cpp_1640x924_30fps_snapshot.so
lib/libchromatix_imx179_cpp_1640x924_30fps_video.so
lib/libchromatix_imx179_cpp_3280x1846_30fps_liveshot.so
lib/libchromatix_imx179_cpp_3280x1846_30fps_preview.so
lib/libchromatix_imx179_cpp_3280x1846_30fps_snapshot.so
lib/libchromatix_imx179_cpp_3280x1846_30fps_video.so
lib/libchromatix_imx179_cpp_3280x2464_30fps_facebeauty.so
lib/libchromatix_imx179_cpp_3280x2464_30fps_liveshot.so
lib/libchromatix_imx179_cpp_3280x2464_30fps_nomultiframe.so
lib/libchromatix_imx179_cpp_3280x2464_30fps_preview.so
lib/libchromatix_imx179_cpp_3280x2464_30fps_snapshot.so
lib/libchromatix_imx179_cpp_3280x2464_30fps_video.so
lib/libchromatix_imx179_isp_1640x924_30fps_preview.so
lib/libchromatix_imx179_isp_1640x924_30fps_snapshot.so
lib/libchromatix_imx179_isp_1640x924_30fps_video.so
lib/libchromatix_imx179_isp_3280x1846_30fps_preview.so
lib/libchromatix_imx179_isp_3280x1846_30fps_snapshot.so
lib/libchromatix_imx179_isp_3280x1846_30fps_video.so
lib/libchromatix_imx179_isp_3280x2464_30fps_facebeauty.so
lib/libchromatix_imx179_isp_3280x2464_30fps_preview.so
lib/libchromatix_imx179_isp_3280x2464_30fps_snapshot.so
lib/libchromatix_imx179_isp_3280x2464_30fps_video.so
lib/libchromatix_imx179_postproc.so
lib/libchromatix_imx298_3a_clearshot.so
lib/libchromatix_imx298_3a_panorama.so
lib/libchromatix_imx298_4K_preview.so
lib/libchromatix_imx298_4K_video.so
lib/libchromatix_imx298_common_manual.so
lib/libchromatix_imx298_common.so
lib/libchromatix_imx298_cpp_hfr_120.so
lib/libchromatix_imx298_cpp_hfr_60.so
lib/libchromatix_imx298_cpp_hfr_90.so
lib/libchromatix_imx298_cpp_liveshot.so
lib/libchromatix_imx298_cpp_panorama_preview.so
lib/libchromatix_imx298_cpp_panorama_snapshot.so
lib/libchromatix_imx298_cpp_preview.so
lib/libchromatix_imx298_cpp_snapshot_clearshot.so
lib/libchromatix_imx298_cpp_snapshot_flash.so
lib/libchromatix_imx298_cpp_snapshot_hdr.so
lib/libchromatix_imx298_cpp_snapshot_manual.so
lib/libchromatix_imx298_cpp_snapshot_nomultiframe.so
lib/libchromatix_imx298_cpp_snapshot.so
lib/libchromatix_imx298_cpp_video_hdr.so
lib/libchromatix_imx298_cpp_video.so
lib/libchromatix_imx298_default_preview.so
lib/libchromatix_imx298_default_video.so
lib/libchromatix_imx298_hdr_snapshot_3a.so
lib/libchromatix_imx298_hdr_video_3a.so
lib/libchromatix_imx298_hfr_120_3a.so
lib/libchromatix_imx298_hfr_120.so
lib/libchromatix_imx298_hfr_60_3a.so
lib/libchromatix_imx298_hfr_60.so
lib/libchromatix_imx298_hfr_90_3a.so
lib/libchromatix_imx298_hfr_90.so
lib/libchromatix_imx298_isp_panorama.so
lib/libchromatix_imx298_liveshot.so
lib/libchromatix_imx298_postproc.so
lib/libchromatix_imx298_preview.so
lib/libchromatix_imx298_snapshot_hdr.so
lib/libchromatix_imx298_snapshot.so
lib/libchromatix_imx298_video_hdr.so
lib/libchromatix_imx298_video.so
lib/libchromatix_imx298_zsl_preview.so
lib/libchromatix_imx298_zsl_video.so
lib/libcneapiclient.so
lib/libcneconn.so
lib/libcneqmiutils.so
lib/libcne.so
lib/libconfigdb.so
lib/libconnctrl.so
lib/libcppf.so
lib/libdataitems.so
lib/libdiag.so
lib/libdisp-aba.so
lib/lib-dplmedia.so
lib/libdpmctmgr.so
lib/libdpmfdmgr.so
lib/libdpmframework.so
lib/libdpmnsrm.so
lib/libdpmtcm.so
lib/libdrc.so
lib/libdrmfs.so
lib/libdrmtime.so
lib/libdsi_netctrl.so
lib/libdsutils.so
lib/libEGL_adreno.so
lib/libExtendedExtractor.so
lib/libextendedremotedisplay.so
lib/libfastcvadsp_stub.so
lib/libfastcvopt.so
lib/libFidoCryptoJNI.so
lib/libFidoCrypto.so
lib/libFIDOKeyProvisioning.so
lib/libFidoSuiJNI.so
lib/libFileMux.so
lib/libFlacSwDec.so
lib/libflash_pmic.so
lib/libflp.so
lib/libgdtap.so
lib/libgeofence.so
lib/libGPreqcancel.so
lib/libGPreqcancel_svc.so
lib/libGPTEE.so
lib/libgsl.so
lib/libhdcp1prov.so
lib/libI420colorconvert.so
lib/libidl.so
lib/libimscamera_jni.so
lib/lib-imscamera.so
lib/lib-imsdpl.so
lib/libimsmedia_jni.so
lib/lib-imsqimf.so
lib/lib-imsrcscmclient.so
lib/lib-ims-rcscmjni.so
lib/lib-imsrcscmservice.so
lib/lib-imsrcscm.so
lib/lib-imsrcs.so
lib/lib-imsSDP.so
lib/lib-imss.so
lib/lib-imsvt.so
lib/lib-imsxml.so
lib/libizat_core.so
lib/libjpegdhw.so
lib/libjpegdmahw.so
lib/libjpegehw.so
lib/liblbs_core.so
lib/liblistenjni.so
lib/liblistensoundmodel2.so
lib/libllvd_smore.so
lib/libllvm-glnext.so
lib/libllvm-qcom.so
lib/liblocationservice_glue.so
lib/liblocationservice.so
lib/libloc_ext.so
lib/liblowi_client.so
lib/liblqe.so
lib/libmare-1.1.so
lib/libmare-cpu-1.1.so
lib/libmdmdetect.so
lib/libmdsprpc.so
lib/libmdtp_crypto.so
lib/libmdtpdemojni.so
lib/libmdtp.so
lib/libmm-als.so
lib/libmmcamera2_c2d_module.so
lib/libmmcamera2_cpp_module.so
lib/libmmcamera2_frame_algorithm.so
lib/libmmcamera2_iface_modules.so
lib/libmmcamera2_imglib_modules.so
lib/libmmcamera2_isp_modules.so
lib/libmmcamera2_is.so
lib/libmmcamera2_mct.so
lib/libmmcamera2_pp_buf_mgr.so
lib/libmmcamera2_pproc_modules.so
lib/libmmcamera2_q3a_core.so
lib/libmmcamera2_sensor_modules.so
lib/libmmcamera2_stats_algorithm.so
lib/libmmcamera2_stats_modules.so
lib/libmmcamera2_vpe_module.so
lib/libmmcamera2_wnr_module.so
lib/libmmcamera_dbg.so
lib/libmmcamera_dummyalgo.so
lib/libmmcamera_eebinparse.so
lib/libmmcamera_eeprom_util.so
lib/libmmcamera_eztune_module.so
lib/libmmcamera_faceproc.so
lib/libmmcamera_hdr_gb_lib.so
lib/libmmcamera_hvx_add_constant.so
lib/libmmcamera_hvx_grid_sum.so
lib/libmmcamera_hvx_zzHDR.so
lib/libmmcamera_imglib_faceproc_adspstub.so
lib/libmmcamera_imglib.so
lib/libmmcamera_imx179.so
lib/libmmcamera_imx298.so
lib/libmmcamera_isp_abf47.so
lib/libmmcamera_isp_aec_bg_stats47.so
lib/libmmcamera_isp_bf_stats47.so
lib/libmmcamera_isp_bg_stats46.so
lib/libmmcamera_isp_bhist_stats44.so
lib/libmmcamera_isp_black_level47.so
lib/libmmcamera_isp_bpc47.so
lib/libmmcamera_isp_cac47.so
lib/libmmcamera_isp_chroma_enhan40.so
lib/libmmcamera_isp_chroma_suppress40.so
lib/libmmcamera_isp_clamp_encoder40.so
lib/libmmcamera_isp_clamp_video40.so
lib/libmmcamera_isp_clamp_viewfinder40.so
lib/libmmcamera_isp_color_correct46.so
lib/libmmcamera_isp_color_xform_encoder46.so
lib/libmmcamera_isp_color_xform_video46.so
lib/libmmcamera_isp_color_xform_viewfinder46.so
lib/libmmcamera_isp_cs_stats46.so
lib/libmmcamera_isp_demosaic47.so
lib/libmmcamera_isp_demux40.so
lib/libmmcamera_isp_fovcrop_encoder46.so
lib/libmmcamera_isp_fovcrop_video46.so
lib/libmmcamera_isp_fovcrop_viewfinder46.so
lib/libmmcamera_isp_gamma44.so
lib/libmmcamera_isp_gic46.so
lib/libmmcamera_isp_gtm46.so
lib/libmmcamera_isp_hdr46.so
lib/libmmcamera_isp_hdr_be_stats46.so
lib/libmmcamera_isp_ihist_stats46.so
lib/libmmcamera_isp_linearization40.so
lib/libmmcamera_isp_ltm47.so
lib/libmmcamera_isp_mce40.so
lib/libmmcamera_isp_mesh_rolloff44.so
lib/libmmcamera_isp_pedestal_correct46.so
lib/libmmcamera_isp_rs_stats46.so
lib/libmmcamera_isp_scaler_encoder46.so
lib/libmmcamera_isp_scaler_video46.so
lib/libmmcamera_isp_scaler_viewfinder46.so
lib/libmmcamera_isp_sce40.so
lib/libmmcamera_isp_snr47.so
lib/libmmcamera_isp_sub_module.so
lib/libmmcamera_llvd.so
lib/libmmcamera_pdafcamif.so
lib/libmmcamera_pdaf.so
lib/libmmcamera_ppbase_module.so
lib/libmmcamera_sony_imx179_eeprom.so
lib/libmmcamera_sony_imx298_eeprom.so
lib/libmmcamera_stillmore_lib.so
lib/libmmcamera_thread_services.so
lib/libmmcamera_tintless_algo.so
lib/libmmcamera_tintless_bg_pca_algo.so
lib/libmmcamera_tuning_lookup.so
lib/libmmcamera_tuning.so
lib/libmmcamera_vpu_module.so
lib/libmm-color-convertor.so
lib/libmm-disp-apis.so
lib/libmm-hdcpmgr.so
lib/libmmhttpstack.so
lib/libmmiipstreammmihttp.so
lib/libmmipstreamaal.so
lib/libmmipstreamnetwork.so
lib/libmmipstreamsourcehttp.so
lib/libmmipstreamutils.so
lib/libmmi.so
lib/libmmjpeg.so
lib/libmmosal.so
lib/libmmparser_lite.so
lib/libmmparser.so
lib/libmm-qdcm.so
lib/libmmqjpeg_codec.so
lib/libmmqjpegdma.so
lib/libmmQSM.so
lib/libmmrtpdecoder.so
lib/libmmrtpencoder.so
lib/libmmwfdinterface.so
lib/libmmwfdsinkinterface.so
lib/libmmwfdsrcinterface.so
lib/libnative_audio_latency_jni.so
lib/libnetmgr.so
lib/libNimsWrap.so
lib/libois_rohm_bu63165gwl.so
lib/libOmxAacDec.so
lib/libOmxAlacDec.so
lib/libOmxAmrwbplusDec.so
lib/libOmxApeDec.so
lib/libOmxEvrcDec.so
lib/libOmxMux.so
lib/libOmxQcelp13Dec.so
lib/libOmxVideoDSMode.so
lib/libOmxWmaDec.so
lib/libOpenCL.so
lib/libperipheral_client.so
lib/libproxadapter.so
lib/libproxsockadapter.so
lib/libpvr.so
lib/libQBLAS-0.13.0.so
lib/libqcci_legacy.so
lib/libqcmaputils.so
lib/libqc-opt.so
lib/libqcproximity.so
lib/libqct_resampler.so
lib/libqdi.so
lib/libqdp.so
lib/libqisl.so
lib/libqmi_cci.so
lib/libqmi_client_helper.so
lib/libqmi_client_qmux.so
lib/libqmi_common_so.so
lib/libqmi_csi.so
lib/libqmi_encdec.so
lib/libqmiservices.so
lib/libqmi.so
lib/libqomx_jpegdec.so
lib/libqomx_jpegenc_pipe.so
lib/libqomx_jpegenc.so
lib/libQSEEComAPI.so
lib/libqti-at.so
lib/libqti-gt.so
lib/libqti-iop-client.so
lib/libqti-perfd-client.so
lib/libQtiTether.so
lib/libqti-wl.so
lib/libquipc_os_api.so
lib/libqvop-service.so
lib/librcc.so
lib/lib-rcsimssjni.so
lib/lib-rcsjni.so
lib/libril-qc-qmi-1.so
lib/libril-qc-radioconfig.so
lib/libril-qcril-hook-oem.so
lib/librmp.so
lib/librpmb.so
lib/librs_adreno_sha1.so
lib/librs_adreno.so
lib/libRSDriver_adreno.so
lib/lib-rtpcommon.so
lib/lib-rtpcore.so
lib/lib-rtpdaemoninterface.so
lib/lib-rtpsl.so
lib/libSampleAuthJNI.so
lib/libSampleExtAuthJNI.so
lib/libscale.so
lib/libscve_mv.so
lib/libscve.so
lib/libscve_stub.so
lib/libscveTextRecoPostProcessing.so
lib/libsdm-disp-apis.so
lib/libsd_sdk_display.so
lib/lib-sec-disp.so
lib/libSecureExtAuthJNI.so
lib/libSecureSampleAuthJNI.so
lib/libSecureUILib.so
lib/libsecureui.so
lib/libsecureuisvc_jni.so
lib/libsecureui_svcsock.so
lib/libseemore.so
lib/libseemp_binder.so
lib/libSeempMsgService.so
lib/libseempnative.so
lib/libsensor1.so
lib/libsensor_reg.so
lib/libsi.so
lib/libslimclient.so
lib/libsmemlog.so
lib/libsmwrapper.so
lib/libSonyIMX298PdafLibrary.so
lib/libsregex.so
lib/libssd.so
lib/libStDrvInt.so
lib/libsubsystem_control.so
lib/libSubSystemShutdown.so
lib/libsurround_3mic_proc.so
lib/libsystem_health_mon.so
lib/libtar.so
lib/libthermalclient.so
lib/libtime_genoff.so
lib/libTimeService.so
lib/libtm_interface.so
lib/libtzdrmgenprov.so
lib/libual.so
lib/libualutil.so
lib/libulp2.so
lib/libusndroute.so
lib/libvendorconn.so
lib/libvoice-svc.so
lib/libvpphvx.so
lib/libvqzip.so
lib/libwfdavenhancements.so
lib/libwfdcommonutils.so
lib/libwfdhdcpcp.so
lib/libwfdmmservice.so
lib/libwfdmmsink.so
lib/libwfdmmsrc.so
lib/libwfdmmutils.so
lib/libwfdnative.so
lib/libwfdrtsp.so
lib/libwfdservice.so
lib/libwfdsm.so
lib/libwfduibcinterface.so
lib/libwfduibcsinkinterface.so
lib/libwfduibcsink.so
lib/libwfduibcsrcinterface.so
lib/libwfduibcsrc.so
lib/libwms.so
lib/libwqe.so
lib/libxml.so
lib/libxtadapter.so
lib/libxt_native.so
lib/libxtwifi_ulp_adaptor.so
lib/mmi_audio.so
lib/mmi_battery.so
lib/mmi_bluetooth.so
lib/mmi_camera.so
lib/mmi_cpu.so
lib/mmi_flashlight.so
lib/mmi_fm.so
lib/mmi_gps.so
lib/mmi_headset.so
lib/mmi_key.so
lib/mmi_lcd.so
lib/mmi_light.so
lib/mmi_memory.so
lib/mmi_nfc.so
lib/mmi_sensor.so
lib/mmi_sim.so
lib/mmi_storage.so
lib/mmi_sysinfo.so
lib/mmi_touch.so
lib/mmi_vibrator.so
lib/mmi_wifi.so
lib/qcdrm/playready/lib/drm/libdrmprplugin_customer.so
lib/qcdrm/playready/lib/libprdrmdecrypt_customer.so
lib/qcdrm/playready/lib/libtzplayready_customer.so
lib/qcdrm/playready/lib/mediadrm/libprmediadrmdecrypt_customer.so
lib/qcdrm/playready/lib/mediadrm/libprmediadrmplugin_customer.so
lib/rfsa/adsp/libAMF_hexagon_skel.so
lib/rfsa/adsp/libapps_mem_heap.so
lib/rfsa/adsp/libdspCV_skel.so
lib/rfsa/adsp/libfastcvadsp_skel.so
lib/rfsa/adsp/libfastcvadsp.so
lib/rfsa/adsp/libmare_hexagon_skel.so
lib/rfsa/adsp/libobjectMattingApp_skel.so
lib/rfsa/adsp/libscveBlobDescriptor_skel.so
lib/rfsa/adsp/libscveCleverCapture_skel.so
lib/rfsa/adsp/libscveObjectSegmentation_skel.so
lib/rfsa/adsp/libscveT2T_skel.so
lib/rfsa/adsp/libscveTextReco_skel.so
lib/rfsa/adsp/libvpp_frc.so
lib/rfsa/adsp/libvpp_svc_skel.so
lib/rfsa/adsp/us-syncproximity.so
lib/sensors.oem.so
lib/sensors.ssc.so
lib/soundfx/libqcbassboost.so
lib/soundfx/libqcreverb.so
lib/soundfx/libqcvirt.so
lib/test_suite_all_modules.so
lib/test_suite_no_sensor.so
lib/test_suite_pproc.so
lib/test_suite_vfe.so
lib64/egl/eglSubDriverAndroid.so
lib64/egl/libEGL_adreno.so
lib64/egl/libGLESv1_CM_adreno.so
lib64/egl/libGLESv2_adreno.so
lib64/egl/libq3dtools_adreno.so
lib64/egl/libq3dtools_esx.so
lib64/egl/libQTapGLES.so
lib64/hw/activity_recognition.msm8996.so
lib64/hw/fingerprint.qcom.so_not_use
lib64/hw/flp.default.so
lib64/hw/gatekeeper.msm8996.so
lib64/hw/keystore.msm8996.so
lib64/libacdb-fts.so
lib64/libacdbloader.so
lib64/libacdbmapper.so
lib64/libacdbrtac.so
lib64/libadiertac.so
lib64/libadreno_utils.so
lib64/libadsp_default_listener.so
lib64/libadsprpc.so
lib64/libalarmservice_jni.so
lib64/libasn1cper.so
lib64/libasn1crt.so
lib64/libasn1crtx.so
lib64/libaudcal.so
lib64/libaudioalsa.so
lib64/libaudiodevarb.so
lib64/libbccQTI.so
lib64/libbtnv.so
lib64/libbt-vendor.so
lib64/libC2D2.so
lib64/libc2d30-a3xx.so
lib64/libc2d30-a4xx.so
lib64/libc2d30-a5xx.so
lib64/libc2d30_bltlib.so
lib64/libCB.so
lib64/libChamomilePA.so
lib64/libcneapiclient.so
lib64/libcneconn.so
lib64/libcneqmiutils.so
lib64/libcne.so
lib64/libCommandSvc.so
lib64/libconfigdb.so
lib64/libconnctrl.so
lib64/libdataitems.so
lib64/libdiag.so
lib64/libdisp-aba.so
lib64/lib-dplmedia.so
lib64/libdpmctmgr.so
lib64/libdpmfdmgr.so
lib64/libdpmframework.so
lib64/libdpmnsrm.so
lib64/libdpmtcm.so
lib64/libdrmfs.so
lib64/libdrmtime.so
lib64/libdsi_netctrl.so
lib64/libdsutils.so
lib64/libEGL_adreno.so
lib64/libExtendedExtractor.so
lib64/libextendedremotedisplay.so
lib64/libfastcvadsp_stub.so
lib64/libfastcvopt.so
lib64/libFidoCryptoJNI.so
lib64/libFidoCrypto.so
lib64/libFIDOKeyProvisioning.so
lib64/libFidoSuiJNI.so
lib64/libFileMux.so
lib64/libFlacSwDec.so
lib64/libflp.so
lib64/libgdtap.so
lib64/libgeofence.so
lib64/libGPreqcancel.so
lib64/libGPreqcancel_svc.so
lib64/libGPTEE.so
lib64/libgsl.so
lib64/libhdcp1prov.so
lib64/libI420colorconvert.so
lib64/libidl.so
lib64/libimscamera_jni.so
lib64/lib-imscamera.so
lib64/lib-imsdpl.so
lib64/libimsmedia_jni.so
lib64/lib-imsqimf.so
lib64/lib-imsrcscmclient.so
lib64/lib-ims-rcscmjni.so
lib64/lib-imsrcscmservice.so
lib64/lib-imsrcscm.so
lib64/lib-imsrcs.so
lib64/lib-imsSDP.so
lib64/lib-imss.so
lib64/lib-imsvt.so
lib64/lib-imsxml.so
lib64/libizat_core.so
lib64/liblbs_core.so
lib64/libllvm-glnext.so
lib64/libllvm-qcom.so
lib64/liblocationservice_glue.so
lib64/liblocationservice.so
lib64/libloc_ext.so
lib64/libloc_xtra.so
lib64/liblowi_client.so
lib64/liblowi_wifihal_nl.so
lib64/liblowi_wifihal.so
lib64/liblqe.so
lib64/libmare-1.1.so
lib64/libmare-cpu-1.1.so
lib64/libmdmdetect.so
lib64/libmdmimgload.so
lib64/libmdsprpc.so
lib64/libmdtp_crypto.so
lib64/libmdtpdemojni.so
lib64/libmdtp.so
lib64/libmm-als.so
lib64/libmmcamera2_frame_algorithm.so
lib64/libmmcamera2_is.so
lib64/libmmcamera2_q3a_core.so
lib64/libmmcamera2_stats_algorithm.so
lib64/libmmcamera_dbg.so
lib64/libmmcamera_tintless_algo.so
lib64/libmmcamera_tintless_bg_pca_algo.so
lib64/libmm-color-convertor.so
lib64/libmm-disp-apis.so
lib64/libmm-dspp-utils.so
lib64/libmm-hdcpmgr.so
lib64/libmmhttpstack.so
lib64/libmmiipstreammmihttp.so
lib64/libmmipstreamaal.so
lib64/libmmipstreamnetwork.so
lib64/libmmipstreamsourcehttp.so
lib64/libmmipstreamutils.so
lib64/libmmi.so
lib64/libmmosal.so
lib64/libmmparser_lite.so
lib64/libmmparser.so
lib64/libmm-qdcm-diag.so
lib64/libmm-qdcm.so
lib64/libmmQSM.so
lib64/libmmrtpdecoder.so
lib64/libmmrtpencoder.so
lib64/libmmwfdinterface.so
lib64/libmmwfdsinkinterface.so
lib64/libmmwfdsrcinterface.so
lib64/libnetmgr.so
lib64/libNimsWrap.so
lib64/libOmxAacDec.so
lib64/libOmxAlacDec.so
lib64/libOmxAmrwbplusDec.so
lib64/libOmxApeDec.so
lib64/libOmxEvrcDec.so
lib64/libOmxMux.so
lib64/libOmxQcelp13Dec.so
lib64/libOmxWmaDec.so
lib64/libOpenCL.so
lib64/libperipheral_client.so
lib64/libproxadapter.so
lib64/libproxsockadapter.so
lib64/libpvr.so
lib64/libQBLAS-0.13.0.so
lib64/libqcci_legacy.so
lib64/libqcmaputils.so
lib64/libqc-opt.so
lib64/libqcproximity.so
lib64/libqdi.so
lib64/libqdp.so
lib64/libqfp-service.so
lib64/libqisl.so
lib64/libqmi_cci.so
lib64/libqmi_client_helper.so
lib64/libqmi_client_qmux.so
lib64/libqmi_common_so.so
lib64/libqmi_csi.so
lib64/libqmi_encdec.so
lib64/libqmiservices.so
lib64/libqmi.so
lib64/libQSEEComAPI.so
lib64/libqti-at.so
lib64/libqti-gt.so
lib64/libqti-iop-client.so
lib64/libqti-perfd-client.so
lib64/libQtiTether.so
lib64/libqti-wl.so
lib64/libquipc_os_api.so
lib64/libqvop-service.so
lib64/librcc.so
lib64/lib-rcsimssjni.so
lib64/lib-rcsjni.so
lib64/libril-qc-qmi-1.so
lib64/libril-qc-radioconfig.so
lib64/libril-qcril-hook-oem.so
lib64/librmp.so
lib64/librpmb.so
lib64/librs_adreno_sha1.so
lib64/librs_adreno.so
lib64/libRSDriver_adreno.so
lib64/lib-rtpcommon.so
lib64/lib-rtpcore.so
lib64/lib-rtpdaemoninterface.so
lib64/lib-rtpsl.so
lib64/libSampleAuthJNI.so
lib64/libSampleExtAuthJNI.so
lib64/libscalar.so
lib64/libscale.so
lib64/libsdm-color.so
lib64/libsdm-diag.so
lib64/libsdm-disp-apis.so
lib64/libsdmextension.so
lib64/libsd_sdk_display.so
lib64/lib-sec-disp.so
lib64/libSecureExtAuthJNI.so
lib64/libSecureSampleAuthJNI.so
lib64/libSecureUILib.so
lib64/libsecureui.so
lib64/libsecureuisvc_jni.so
lib64/libsecureui_svcsock.so
lib64/libseemp_binder.so
lib64/libSeempMsgService.so
lib64/libseempnative.so
lib64/libsensor1.so
lib64/libsensor_reg.so
lib64/libsi.so
lib64/libslimclient.so
lib64/libsmemlog.so
lib64/libssd.so
lib64/libStDrvInt.so
lib64/libsubsystem_control.so
lib64/libSubSystemShutdown.so
lib64/libsystem_health_mon.so
lib64/libthermalclient.so
lib64/libthermalioctl.so
lib64/libtime_genoff.so
lib64/libTimeService.so
lib64/libtzdrmgenprov.so
lib64/libual.so
lib64/libualutil.so
lib64/libulp2.so
lib64/libusndroute.so
lib64/libusutils.so
lib64/libvendorconn.so
lib64/libvoice-svc.so
lib64/libvpphvx.so
lib64/libwfdavenhancements.so
lib64/libwfdcommonutils.so
lib64/libwfdhdcpcp.so
lib64/libwfdmmservice.so
lib64/libwfdmmsink.so
lib64/libwfdmmsrc.so
lib64/libwfdmmutils.so
lib64/libwfdnative.so
lib64/libwfdrtsp.so
lib64/libwfdservice.so
lib64/libwfdsm.so
lib64/libwfduibcinterface.so
lib64/libwfduibcsinkinterface.so
lib64/libwfduibcsink.so
lib64/libwfduibcsrcinterface.so
lib64/libwfduibcsrc.so
lib64/libwms.so
lib64/libwqe.so
lib64/libxml.so
lib64/libxtadapter.so
lib64/libxt_native.so
lib64/libxtwifi_ulp_adaptor.so
lib64/mmi_audio.so
lib64/mmi_battery.so
lib64/mmi_bluetooth.so
lib64/mmi_cpu.so
lib64/mmi_flashlight.so
lib64/mmi_fm.so
lib64/mmi_gps.so
lib64/mmi_headset.so
lib64/mmi_key.so
lib64/mmi_lcd.so
lib64/mmi_light.so
lib64/mmi_memory.so
lib64/mmi_nfc.so
lib64/mmi_sensor.so
lib64/mmi_sim.so
lib64/mmi_storage.so
lib64/mmi_sysinfo.so
lib64/mmi_touch.so
lib64/mmi_vibrator.so
lib64/mmi_wifi.so
lib64/qfp.wakeup.so
lib64/sensors.oem.so
lib64/sensors.ssc.so
lib64/soundfx/libqcbassboost.so
lib64/soundfx/libqcreverb.so
lib64/soundfx/libqcvirt.so
qcril.db
"

for i in ${vendor_list}
do
  adb pull /system/vendor/${i} ${PREBUILT_PATH}vendor/${i}
done


framework_list="
cneapiclient.jar
com.qti.dpmframework.jar
com.qti.snapdragon.sdk.display.jar
com.qualcomm.qti.GBAHttpAuthentication.jar
com.quicinc.cne.jar
ConnectivityExt.jar
dpmapi.jar
embmslibrary.jar
imscmlibrary.jar
qmapbridge.jar
rcsimssettings.jar
rcsservice.jar
tcmclient.jar
"

for i in ${framework_list}
do
  adb pull /system/framework/${i} ${PREBUILT_PATH}framework/${i}
done

tts_list="
lang_pico/de-DE_gl0_sg.bin
lang_pico/de-DE_ta.bin
lang_pico/en-GB_kh0_sg.bin
lang_pico/en-GB_ta.bin
lang_pico/en-US_lh0_sg.bin
lang_pico/en-US_ta.bin
lang_pico/es-ES_ta.bin
lang_pico/es-ES_zl0_sg.bin
lang_pico/fr-FR_nk0_sg.bin
lang_pico/fr-FR_ta.bin
lang_pico/it-IT_cm0_sg.bin
lang_pico/it-IT_ta.bin
"

for i in ${tts_list}
do
  adb pull /system/tts/${i} ${PREBUILT_PATH}tts/${i}
done

sbin_list="
dashd
"

for i in ${sbin_list}
do
  adb pull /sbin/${i} ${PREBUILT_PATH}sbin/${i}
done

